﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AutoMapper;
using Cnm.Models;
using Cnm.Models.Admins;
using Cnm.Models.ViewModels;

namespace Cnm.Mvc.Web.Infrastructure
{
    public class AutoMapperWebConfiguration
    {
        public static void ConfigureUserMapping()
        {
            Mapper.CreateMap<Product, ProductModel>();
            Mapper.CreateMap<ProductModel, Product>();

            Mapper.CreateMap<Post, PostModel>();
            Mapper.CreateMap<PostModel, Post>();
        }
    }
}